package com.vortex.cloud.sample.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.github.liaochong.myexcel.core.annotation.ExcelColumn;
import com.github.liaochong.myexcel.core.annotation.ExcelModel;
import com.github.liaochong.myexcel.core.annotation.IgnoreColumn;
import com.github.liaochong.myexcel.core.annotation.Prompt;
import com.github.liaochong.myexcel.core.constant.FileType;
import com.github.liaochong.myexcel.core.constant.LinkType;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.File;
import java.io.InputStream;
import java.time.LocalDateTime;
import java.util.List;

/**
 * @author 王林
 * @version 1.0
 * @date 2021-10-27 周三
 * @time 11:08
 * @description
 */
@Data
public class ArtCrowdDTO {

    @ExcelColumn(index = 0, title = "序号")
    private Integer id;

    @ExcelColumn(index = 1, title = "姓名")
    private String name;

    @ExcelColumn(index = 2, title = "年龄")
    private Integer age;

    @ExcelColumn(index = 3, title = "性别")
    private String gender;

    @ExcelColumn(index = 4, title = "绘画等级")
    private String paintingLevel;

    @ExcelColumn(index = 5, title = "是否会跳舞")
    private Boolean dance;

//    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
//    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ExcelColumn(index = 6, title = "考核时间", format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime assessmentTime;

    @IgnoreColumn
    private String hobby;

    @ExcelColumn(index = 7, title = "链接地址")
    private String url;

    @ExcelColumn(index = 8, title = "图片")
    private InputStream image;

    @ExcelColumn(title = "女朋友")
    private List<String> options;

//    @IgnoreColumn
//    @ExcelColumn(index = 8, title = "图片")
//    private InputStream photo;

}
